﻿using System;
using System.Collections.Generic;
using System.Text;

using Model;

namespace BLL
{
    public class TechnologicalBLL
    {
        private readonly ITechnological technological;
        public TechnologicalBLL(ITechnological it)
        {
            this.technological = it;
        }
        //申请状态
        public IEnumerable<Astate> SelAstate()
        {
            return technological.Astates();
        }
        //请假申请待办查询
        public IEnumerable<Leave> SelLeave()
        {
            return technological.Leaves();
        }
        //请假类型查询
        public IEnumerable<Leave_type> Leave_Types()
        {
            return technological.leave_Types();
        }
        //请假添加申请
        public int AddLeave(Leave l)
        {
            return technological.AddLeaves(l);
        }
        //加班申请待办查询
        public IEnumerable<work> SelWorks()
        {
            return technological.Works();
        }

        //加班申请添加
        public int AddWork(work w)
        {
            return technological.AddWork(w);
        }
        //加班审核
        public int examineWork(work w)
        {
            return technological.examineWork(w);
        }
        //请假审核
        public int examine(Leave l)
        {
            return technological.examine(l);
        }
        //出差申请添加
        public int AddTravel(Travel t)
        {
            return technological.AddTravel(t);
        }
        //出差待办查询
        public IEnumerable<Travel> Travels()
        {
            return technological.Travels();
        }
        //出差审核
        public int examineTravels(Travel t)
        {
            return technological.examineTravels(t);
        }
        //添加活动申请
        public int AddActivity(Activity a)
        {
            return technological.AddActivity(a);
        }
        //活动待办查询
        public IEnumerable<Activity> Activities()
        {
            return technological.Activities();
        }
    }
}
